pandas split column fixed width

21

df[['CCY1','CCY2']] = df.CCYPair.str.extract('(.{3})(.*)')

Comments

Submit
0 Comments